package com.wmh.baseservice.common.mail;

import cn.hutool.extra.mail.MailAccount;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author 谢骏
 * @date 2023/10/1 14:43
 **/
@Configuration
public class MailConfig {

    @Bean
    public MailAccount systemMailAccount() {
        return new MailAccount()
                .setAuth(true)
                .setHost("smtp.163.com")
                .setUser("13432110777@163.com")
                .setPass("QCBHVCYQYOFYEELX")
                .setPort(25)
                .setFrom("13432110777@163.com");
    }

}
